<div class="col-md-12">
    <div class="box margin-middle max-width">
        <!-- BOX-BODY -->
        <div class="box-body">
            {{#bs-form formLayout=formLayout model=consultModel action=(action "saveWarning") invalid=(action "invalid")}}
                <!-- 列表编辑-->
                <div class="row">
                    <div class="col-xs-12">
                        <p class="user-add-btn">
                            <!-- <button class="btn btn-primary" type="button"><i class="fa fa-check icon-white"></i>&ensp;保存</button>
						<button class="btn btn-light-grey"><i class="fa fa-times"></i>&ensp;取消</button> -->
                            {{#if detailEdit}}
                                {{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-save" text='保存' clickActParams=consult}}
                                {{/ui/mix-button}}
                                {{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo" text='取消' clickAction="detailCancel" detailCancel="detailCancel" }}
                                {{/ui/mix-button}}
                            {{else}}
                                {{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-edit" text='编辑' clickAction="detailEditClick" detailEditClick="detailEditClick" clickActParams=consult}}
                                {{/ui/mix-button}}
                                {{#ui/mix-button class="user-btn trash-btn" iconClass="fa fa-trash-o" text='删除' clickAction="delById" delById="delById" clickActParams=consult}}
                                {{/ui/mix-button}}
                            {{/if}}
                        </p>
                    </div>
                    <div class="padding-bottom10 sign col-sm-12 top10">
                        <strong>咨询信息</strong>
                    </div>
                    <div class="col-xs-12 nopadding-horizontal mt20">
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">咨询人姓名：</span>
                                {{#if detailEdit}}
                                    <!-- {{input class="input-group-content" value=warning.caller.name}} -->
                                        {{bs-form-element property="advName" class="inline-block form-input-group" controlType="advName" placeholder="咨询人姓名"}}
                                {{else}}
                                    <div class="input-group-content">{{consult.advName}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">联系电话：</span>
                                {{#if detailEdit}}
                                    {{bs-form-element property="advTel" class="inline-block form-input-group" controlType="advTel" placeholder="咨询人电话"}}
                                {{else}}
                                    <div class="input-group-content">{{consult.advTel}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">咨询人性别：</span>
                                {{#if detailEdit}}
                                    {{#bs-form-element class="inline-block form-input-group" controlType="advGender" property="advGender" }}
                                        {{callbusi/dict-selector curDict=consultModel.advGender dictChange=consultModel.sexChange groupCode=constants.sexType showName="必填项" dictSelect="sexSelect" value=consultModel.advGender preselected=false}}
                                    {{/bs-form-element}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.advGender.typename}}</div>
                                {{/if}}
                                <!-- <input type="date" class="input-group-content" placeholder=""/> -->
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">与老人关系：</span>
                                {{#if detailEdit}}
                                    <!-- {{callbusi/dict-selector class="inline-block " curDict=customerInfo.firstRelation groupCode=constants.relationType showName="必填项" dictSelect="relationSelect"}} -->
                                    {{#bs-form-element class="inline-block form-input-group" controlType="consultRelation" property="consultRelation" }}
                                        {{callbusi/dict-selector curDict=consultModel.consultRelation groupCode=constants.relationType showName="必填项" dictSelect="relationSelect" value=consultModel.consultRelation preselected=false}}
                                    {{/bs-form-element}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.consultRelation.typename}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">接待人：</span>
                                <!-- <input class="input-group-content" placeholder=""/> -->
                                {{#if detailEdit}}
                                    {{#power-select class="input-group-content" placeholder="处理人" options=staffList selected=defaultStaff searchField="receivePinyin" noMatchesMessage="没有相关内容" allowClear=true onchange=(action "selectStaff" ) as |staff|}}
                                        {{staff.name}}
                                    {{/power-select}}
                                {{else}}
                                    <div class="font-light input-group-content">{{consultModel.receiveStaff.name}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">咨询方式：</span>
                                <!-- <input class="input-group-content" placeholder=""/> -->
                                {{#if detailEdit}}
                                    {{#bs-form-element class="inline-block form-input-group" controlType="consultChannel" property="consultChannel" }}
                                        {{callbusi/dict-selector curDict=consultModel.consultChannel groupCode=constants.consultChannel showName="必填项" dictSelect="channelSelect" value=consultModel.consultChannel preselected=false}}
                                    {{/bs-form-element}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.consultChannel.typename}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">咨询日期：</span>
                                {{#if detailEdit}}
                                    <div class="inline-block form-input-group">
                                        {{ui/addon/bs-datetimepicker date=consultModel.advDateComputed placeholder="咨询日期"
                                        locale="zh-CN" iconClasses="fa fa-calendar" format='YYYY-MM-DD' value=consultModel.advDateComputed
                                        show="dpShowAction" change="changeADVDateAction" }}
                                    </div>
                                {{else}}
                                    <div class="input-group-content">{{consultModel.advDateString}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">预约参观日期：</span>
                                <!-- <input class="input-group-content" placeholder=""/> -->
                                {{#if detailEdit}}
                                    <div class="inline-block form-input-group">
                                        {{ui/addon/bs-datetimepicker date=consultModel.appointmentDateComputed placeholder="预约参观日期"
                                        locale="zh-CN" iconClasses="fa fa-calendar" format='YYYY-MM-DD' value=consultModel.appointmentDateComputed
                                        show="dpShowAction" change="changeAppointmentAction" }}
                                    </div>
                                {{else}}
                                    <div class="input-group-content">{{consultModel.appointmentDateString}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">咨询意向：</span>
                                {{#if detailEdit}}
                                    {{bs-form-element property="occupancyIntent" class="inline-block form-input-group" controlType="occupancyIntent" placeholder="必填项"}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.occupancyIntent}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">了解渠道：</span>
                                {{#if detailEdit}}
                                    {{#bs-form-element class="inline-block form-input-group" controlType="advWay" property="advWay" }}
                                        {{callbusi/dict-selector curDict=consultModel.advWay groupCode=constants.consultSource showName="了解渠道" dictSelect="sourceSelect" value=consultModel.advWay preselected=false}}
                                    {{/bs-form-element}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.advWay.typename}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">参观后反馈：</span>
                                {{#if detailEdit}}
                                    {{bs-form-element property="review" class="inline-block form-input-group" controlType="review" placeholder="参观后反馈"}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.review}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">备注：</span>
                                <!-- <input class="input-group-content" placeholder=""/> -->
                                {{#if detailEdit}}
                                    {{bs-form-element property="remark" class="inline-block form-input-group" controlType="remark" placeholder="备注"}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.remark}}</div>
                                {{/if}}
                            </div>
                        </div>
                    </div>
                    <div class="padding-bottom10 sign col-sm-12">
                        <strong>老人信息</strong>
                    </div>
                    <div class="col-xs-12 nopadding-horizontal mt20">
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">老人姓名：</span>
                                {{#if detailEdit}}
                                    {{#if flagEdit}}
                                        <div class="input-group-content">{{consult.customerName}}</div>
                                    {{else}}
                                        {{bs-form-element property="customerName" class="inline-block form-input-group" controlType="customerName" placeholder="老人姓名"}}
                                    {{/if}}
                                {{else}}
                                    <div class="input-group-content">{{consult.customerName}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">老人性别：</span>
                                {{#if detailEdit}}
                                    {{#bs-form-element class="inline-block form-input-group" controlType="customerGender" property="customerGender" }}
                                        {{callbusi/dict-selector curDict=consultModel.customerGender  groupCode=constants.sexType showName="必填项" dictSelect="customerSexSelect" value=consultModel.customerGender preselected=false}}
                                    {{/bs-form-element}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.customerGender.typename}}</div>
                                {{/if}}
                                <!-- <input type="date" class="input-group-content" placeholder=""/> -->
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">出生日期：</span>
                                {{#if detailEdit}}
                                    <div class="inline-block form-input-group">
                                        {{ui/addon/bs-datetimepicker date=consultModel.customerBrithDate placeholder="出生日期"
                                        locale="zh-CN" iconClasses="fa fa-calendar" format='YYYY-MM-DD' value=consultModel.customerBrithDate
                                        show="dpShowAction" change="changeBrithAction" }}
                                    </div>
                                {{else}}
                                    <div class="input-group-content">{{consultModel.customerBrithString}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">自理能力：</span>
                                {{#if detailEdit}}
                                {{#bs-form-element class="inline-block form-input-group" controlType="customerSelfCareAbility" property="customerSelfCareAbility" }}
                                    {{callbusi/dict-selector curDict=consultModel.customerSelfCareAbility groupCode=constants.selfCareLevel showName="必填项" dictSelect="abilitySelect" value=consultModel.customerSelfCareAbility preselected=false}}
                                {{/bs-form-element}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.customerSelfCareAbility.typename}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">身体状况：</span>
                                {{#if detailEdit}}
                                    {{bs-form-element property="customerPS" class="inline-block form-input-group" controlType="customerPS" placeholder="必填项"}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.customerPS}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">文化程度：</span>
                                <!-- <input class="input-group-content" placeholder=""/> -->
                                {{#if detailEdit}}
                                {{#bs-form-element class="inline-block form-input-group" controlType="customerEducation" property="customerEducation" }}
                                    {{callbusi/dict-selector curDict=consultModel.customerEducation groupCode=constants.educationLevel showName="文化程度" dictSelect="educationSelect" value=consultModel.customerEducation preselected=false}}
                                {{/bs-form-element}}
                                {{else}}
                                    <div class="font-light input-group-content">{{consultModel.customerEducation.typename}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">联系电话：</span>
                                {{#if detailEdit}}
                                    {{bs-form-element property="customerTel" class="inline-block form-input-group" controlType="customerTel" placeholder="必填项"}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.customerTel}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">居住地址：</span>
                                {{#if detailEdit}}
                                    {{bs-form-element property="customerAddr" class="inline-block form-input-group" controlType="customerAddr" placeholder="必填项"}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.customerAddr}}</div>
                                {{/if}}
                            </div>
                        </div>
                    </div>
                    <div class="padding-bottom10 sign col-sm-12 ">
                        <strong>关心内容</strong>
                    </div>
                    <div class="col-xs-12 nopadding-horizontal mt20">
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">特别关心：</span>
                                {{#if detailEdit}}
                                    {{bs-form-element property="care" class="inline-block form-input-group" controlType="care" placeholder="特别关心"}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.care}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">房间要求：</span>
                                {{#if detailEdit}}
                                    {{bs-form-element property="roomRequirements" class="inline-block form-input-group" controlType="roomRequirements" placeholder="房间要求"}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.roomRequirements}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">餐饮要求：</span>
                                {{#if detailEdit}}
                                    {{bs-form-element property="dietRequirements" class="inline-block form-input-group" controlType="dietRequirements" placeholder="餐饮要求"}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.dietRequirements}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">照护要求：</span>
                                {{#if detailEdit}}
                                    {{bs-form-element property="serviceRequirements" class="inline-block form-input-group" controlType="serviceRequirements" placeholder="照护要求"}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.serviceRequirements}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">心理价位：</span>
                                {{#if detailEdit}}
                                    {{bs-form-element property="psychologicalPrice" class="inline-block form-input-group" controlType="psychologicalPrice" placeholder="心理价位"}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.psychologicalPrice}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">其他要求：</span>
                                {{#if detailEdit}}
                                    {{bs-form-element property="otherRequirements" class="inline-block form-input-group" controlType="otherRequirements" placeholder="其他要求"}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.otherRequirements}}</div>
                                {{/if}}
                            </div>
                        </div>
                        <div class="col-xs-12 col-sm-6">
                            <div class="form-input-group">
                                <span class="input-group-addon">不满意的地方：</span>
                                {{#if detailEdit}}
                                    {{bs-form-element property="discontent" class="inline-block form-input-group" controlType="discontent" placeholder="不满意的地方"}}
                                {{else}}
                                    <div class="input-group-content">{{consultModel.discontent}}</div>
                                {{/if}}
                            </div>
                        </div>
                    </div>
                </div>
                <!-- 列表编辑 -->
            {{/bs-form}}
        </div>
        <!-- /BOX-BODY -->
    </div>
</div>
